package com.xuzhen.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xuzhen.dao.AccountDao;
import com.xuzhen.domain.Account;
import com.xuzhen.domain.vo.AccountVo;
import com.xuzhen.service.AccountService;

@Transactional
@Service("accountService")
public class AccountServiceImpl implements AccountService {
	@Autowired
	private AccountDao accountDao;
	@Autowired
	private MonthReportServiceDelete monthReportServiceDelete;

	@Override
	public Account add(Account account) {
		accountDao.save(account);
		monthReportServiceDelete.tigerAddWhenAddInOutOrder(account);
		return account;
	}

	@Override
	public Account delete(Account inOutOrder) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Account> searchInOutOrderByCondition(
			AccountVo inOutOrderVo) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Account update(Account inOutOrder) {
		// TODO Auto-generated method stub
		return null;
	}

}
